<template>
    <el-switch :value="value" :active-value="1" :inactive-value="0" v-bind="config.props" v-on="$listeners"/>
</template>

<script>
    /**
     * 方便使用
     * true -> 1
     * false -> 0
     * */
    export default {
        props: {
            value: '',
            config: Object,
        },
    }
</script>

<style lang="scss" scoped>

</style>
